
<script id="view-users-template" type="text/x-handlebars-template">
	<form class="form-horizontal form-editor form-editor-users">
		<input type="hidden" name="users.id" value="{{id}}">
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="deptsid">部门</label>
					<div class="col-sm-8">
						<select name="depts.id" id="deptsid" class="chosen-select" 
										data-entity="com.app.miwawa.api.system.entity.center.Depts">
							{{userdept deptid}}
						</select>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="duty">职务</label>
					<div class="col-sm-8">
						<input name="users.duty" id="duty" type="text" class="form-control" value="{{duty}}"> 
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="createDate">入职时间</label>
					<div class="col-sm-8">
						<div class="input-group date date-selector">
							<input name="users.createDate" id="createDate" type="text" class="form-control" value="{{createDate}}"> 
							<span class="input-group-addon">
								<span class="fa fa-calendar"></span>
							</span>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="name">姓名</label>
					<div class="col-sm-8">
						<input name="users.name" id="name" type="text" class="form-control" required="required" value="{{name}}">
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="sex">性别</label>
					<div class="col-sm-8">
						<div class="input-group">
							<label class="radio-inline c-radio"> 
								<input type="radio" name="users.sex" value="男" {{checked sex "男"}}/> 
								<span class="fa fa-check"></span> 男
							</label> 
							<label class="radio-inline c-radio"> 
								<input type="radio" name="users.sex" value="女" {{checked sex "女"}}/> 
								<span class="fa fa-check"></span> 女
							</label>
						</div>
					</div>
				</div>
			</div>
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label" for="type">是否兼职</label>
					<div class="col-sm-8">
						<div class="input-group">
							<label class="radio-inline c-radio"> 
								<input type="radio" name="users.type" value="兼职" {{checked type "兼职"}}/> 
								<span class="fa fa-check"></span> 是
							</label>
							<label class="radio-inline c-radio"> 
								<input type="radio" name="users.type" value="全职" {{checked type "全职"}}/> 
								<span class="fa fa-check"></span> 否
							</label>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row">
			<div class="col-sm-4">
				<div class="form-group">
					<label class="col-sm-4 control-label required" for="mobile">手机</label>
					<div class="col-sm-8">
						<input type="text" name="users.mobile" id="mobile" class="form-control" required="required" value="{{mobile}}"/>
					</div>
				</div>
			</div>		
			<div class="col-sm-8">
				<div class="form-group">
					<label class="col-sm-2 control-label" for="email">邮箱</label>
					<div class="col-sm-10">
						<input type="text" name="users.email" id="email" class="form-control" value="{{email}}"/>
					</div>
				</div>
			</div>
		</div>
		<div class="widget-footer editor-footer-sm">
			<button type="button" class="btn btn-danger btn-sm" data-toggle="tooltip" data-placement="top" title="取消" onclick="handlerCancel(this);" data-refresh-table="#table-users">
				<i class="glyphicon glyphicon-remove"></i>
			</button>
			<button type="button" class="btn btn-primary btn-sm" data-toggle="tooltip" data-placement="top" title="保存" onclick="handlerSubmit(this, '#editor-form-users', '.form-editor-users');">
				<i class="glyphicon glyphicon-ok"></i>
			</button>
		</div>
	</form>
</script>
	
	
